package com.ydc.ln.tutorial.j2se.ms;


/**
 * 构造与析构函数
 * 
 * @author ydc
 * @date 下午2:00:00 2013-7-14
 */
class Ch0905 extends X{
    public static void main(String[] args) {
        // new Ch0905();
        
        int MAXIMUM_CAPACITY = 1 << 30;
        
        System.out.println(MAXIMUM_CAPACITY);
        System.out.println((int)Math.scalb(1, 30));
        
    }

    Y y = new Y();

    Ch0905() {
        System.out.println("z");
    }


}


class X {
    Y b = new Y();

    X() {
        System.out.println("x");
    }
}


class Y {
    Y() {
        System.out.println("y");
    }
}


